#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QGraphicsScene>
#include "GraphicsHybridView.h"
#include <QDebug>

class QWebFrame;
class QWebView;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);

    QWebFrame *webFrame() { return m_hybridView->page()->mainFrame(); }
    
    void resizeEvent(QResizeEvent *event);
    
private:
    GraphicsHybridView *m_hybridView;
    QGraphicsScene m_scene;
    QGraphicsView m_view;
};

#endif // MAINWINDOW_H
